package at.ac.tuwien.prog.view.controller;

import java.util.EventObject;

/**
 * 
 * @author christoph.pickl@student.tuwien.ac.at
 */
public class FrontEvent extends EventObject {

	private static final long serialVersionUID = 7240486375183507523L;
	
	private final FrontEventType type;

	
	public FrontEvent(final Object source, final FrontEventType type) {
		super(source);
		
		if(type == null) {
			throw new IllegalArgumentException("type == null");
		}
		this.type = type;
	}

	public FrontEventType getType() {
		return type;
	}
	
	@Override
	public String toString() {
		return "FrontEvent[type="+type+"]";
	}
	
}
